package com.liuqi.aiagent.mapper;

import com.liuqi.aiagent.transfer.entity.Agent;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author liuqi
 * @date 2025/7/16
 **/
@Repository
@Mapper
public interface AgentMapper {

    int save(Agent agent);

    int edit(Agent agent);

    List<Agent> findAll();

    int delete(int id);

    Integer exitsByName(String name);

    Agent findById(int id);

    Agent findByName(String name);

    Agent findByIdOfBrief(int id);

}
